/**
 * Created by DELL on 2017/5/22.
 */
//主页控制器
app.controller('mainCtr', function ($scope, $resource, $cookieStore) {
        $scope.username = $cookieStore.get("loginInfo").name;
        $scope.headnum=0;
        $scope.headclick=function (num) {
          $scope.headnum=num;
        };
        $scope.loginOut = function () {
            $cookieStore.remove('loginInfo');
            window.location.href = '../../login.html';
        };
    });